package com.mysns.core.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户参加活动的记录. 这是一个组件类, 没有本身的 OID.
 * 
 * @author zhouych
 */
@SuppressWarnings("serial")
public class EventAttendance implements Serializable {

	/**
	 * 活动的参与者
	 */
	private GenericUser member;
	
	/**
	 * 被参与的活动
	 */
	private Event event;
	
	/**
	 * 参与时间
	 */
	private Date attendTime;
	
	/**
	 * 构造方法，由两个外键作为联合主键
	 * 
	 * @param member
	 * @param event
	 */
	public EventAttendance(GenericUser member, Event event) {
		this.member = member;
		this.event = event;
	}

	public GenericUser getMember() {
		return member;
	}

	public void setMember(GenericUser member) {
		this.member = member;
	}

	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}

	public Date getAttendTime() {
		return attendTime;
	}

	public void setAttendTime(Date attendTime) {
		this.attendTime = attendTime;
	}
}
